Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Issue 168 #176

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Issue 168 #176

wants to merge 14 commits into from

Conversation

kracekumar
Copy link
Contributor

Fixes issue #168 .

  • New projects cannot be created when hacknight is closed but comments and editing the description of the projects are allowed.

@@ -23,6 +23,16 @@ def send_email(sender, to, subject, body, html=None):
mail.send(msg)


# EDIT form choices
# https://github.com/hasgeek/hacknight/issues/168
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Krace, you need to use workflow actions. The workflow object can automatically generate a list of available actions for the current state. See Kharcha for an example of how to do this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, these choices should NOT be in the Edit form. They should be actions from the sidebar on the event page.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@jace
Copy link
Member

jace commented Apr 27, 2013

Krace, this pull request needs to be rebased.

@jace
Copy link
Member

jace commented May 18, 2013

Can you update this pull request to prepare for merging?

@@ -10,7 +10,7 @@

STATUS_CHOICES = [
(EVENT_STATUS.DRAFT, 'Draft'),
(EVENT_STATUS.PUBLISHED, 'Published'),
(EVENT_STATUS.PUBLISHED, 'Public'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change this flag also to PUBLIC (here and with all references).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change public to PUBLIC or active to PUBLIC ? Should we capitalise ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh got it, EVENT_STATUS.PUBLIC

@kracekumar kracekumar mentioned this pull request May 27, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants